package com.lxj.database;

public class DBUtils {

	public static String sqlEscapeString(String keyWord) {
		if (keyWord != null) {
			keyWord = keyWord.replace("/", "//");
			keyWord = keyWord.replace("'", "''");
			keyWord = keyWord.replace("[", "/[");
			keyWord = keyWord.replace("]", "/]");
			keyWord = keyWord.replace("%", "/%");
			keyWord = keyWord.replace("&", "/&");
			keyWord = keyWord.replace("_", "/_");
			keyWord = keyWord.replace("(", "/(");
			keyWord = keyWord.replace(")", "/)");
		}
		return keyWord;
	}
}
